package com.shen.dao;

import com.shen.pojo.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author:shen
 * CreateDate:2020/7/6.
 * Function:
 */
public interface SubjectDao {
    //查询所有科目
    List<Subject> selectAllSubject();
    //按科目id查询
    Subject selectSubject(@Param("id") Integer id);
    //插入科目
    int insertSubject(Subject subject);
    //删除指定科目
    int deleteSubject(@Param("id") Integer id);
    //更新指定科目
    int updateSubject(Subject subject);

}
